.class Lcom/burstly/lib/util/calendar/Rfc3339ToRfc2445DateDeserializer;
.super Lcom/burstly/jackson/map/JsonDeserializer;
.source "Rfc3339ToRfc2445DateDeserializer.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/jackson/map/JsonDeserializer",
        "<",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# static fields
.field private static final RFC2445_FORMAT:Ljava/text/SimpleDateFormat;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 37
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyyMMdd\'T\'HHmmss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/burstly/lib/util/calendar/Rfc3339ToRfc2445DateDeserializer;->RFC2445_FORMAT:Ljava/text/SimpleDateFormat;

    return-void
.end method

.method constructor <init>()V
    .locals 0

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/burstly/jackson/map/JsonDeserializer;-><init>()V

    return-void
.end method


# virtual methods
.method public bridge synthetic deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 32
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/util/calendar/Rfc3339ToRfc2445DateDeserializer;->deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/String;
    .locals 2
    .parameter "arg0"
    .parameter "arg1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 42
    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getText()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/burstly/lib/util/calendar/Rfc3339Parser;->parseDateString(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    .line 43
    .local v0, parsedDate:Ljava/util/Date;
    if-eqz v0, :cond_0

    .line 44
    sget-object v1, Lcom/burstly/lib/util/calendar/Rfc3339ToRfc2445DateDeserializer;->RFC2445_FORMAT:Ljava/text/SimpleDateFormat;

    invoke-virtual {v1, v0}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    .line 46
    :goto_0
    return-object v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method
